package com.heatup.apt.api.service.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import com.heatup.apt.api.service.ActivityUserService;
import com.heatup.apt.common.dao.ActivityUserMapper;
import com.heatup.apt.model.coupon.ActivityUser;

public class ActivityUserServiceImpl implements ActivityUserService {

    public static final Logger logger = LoggerFactory.getLogger(ActivityUserServiceImpl.class);
	@Autowired
	ActivityUserMapper activityUserMapper;
	
	@Override
	public void insertActivity(ActivityUser aUser) {
		int result = activityUserMapper.insert(aUser);
		if(result <= 0) {
			logger.debug("活动明细插入失败！");
			throw new RuntimeException("活动明细插入失败！");
		}
	}

}
